import request from '@/utils/request'

// 新增其他出库
export function queryStkOutstockList(data) {
  return request({
    url: '/tStkOtheroutstock/queryStkOutstockList',
    method: 'post',
    data
  })
}

// 其他出库查询
export function queryStkOtheroutstockDetails(params) {
  return request({
    url: '/tStkOtheroutstock/queryStkOtheroutstockDetails',
    method: 'get',
    params
  })
}

// 提交其他出库
export function submitStkOtheroutstock(data) {
  return request({
    url: '/tStkOtheroutstock/submitStkOtheroutstock',
    method: 'post',
    data
  })
}

// 反提交其他出库
export function notsubmitStkOtheroutstock(data) {
  return request({
    url: '/tStkOtheroutstock/notsubmitStkOtheroutstock',
    method: 'post',
    data
  })
}

// 审核其他出库
export function auditStkOtheroutstocks(data) {
  return request({
    url: '/tStkOtheroutstock/auditStkOtheroutstocks',
    method: 'post',
    data
  })
}

// 反审核其他出库
export function unauditStkOtheroutstocks(data) {
  return request({
    url: '/tStkOtheroutstock/unauditStkOtheroutstocks',
    method: 'post',
    data
  })
}

// 删除其他出库
export function delStkOtheroutstocks(data) {
  return request({
    url: '/tStkOtheroutstock/delStkOtheroutstocks',
    method: 'post',
    data
  })
}

// 修改其他出库
export function updateStkOtheroutstockDetails(data) {
  return request({
    url: '/tStkOtheroutstock/updateStkOtheroutstockDetails',
    method: 'post',
    data
  })
}
// 新增其他出库
export function insertStkOtheroutstockDetails(data) {
  return request({
    url: '/tStkOtheroutstock/insertStkOtheroutstockDetails',
    method: 'post',
    data
  })
}
// 其他出库审批列表
export function queryOtherOutStockApprovalList(data) {
  return request({
    url: '/tStkOtheroutstock/queryOtherOutStockApprovalList',
    method: 'post',
    data
  })
}
// 其他出库审批-不同意
export function otherOutStockAuditUnApproval(data) {
  return request({
    url: '/tStkOtheroutstock/otherOutStockAuditUnApproval',
    method: 'post',
    data
  })
}
// 跟据物料查询库位
export function queryTBdCodeListByFnumber(data) {
  return request({
    url: '/wmsBdCode/queryTBdCodeListByFnumber',
    method: 'post',
    data
  })
}
